Skip to content

Remove scary disconenct warnings on PeerManager new connection fns #1626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

TheBlueMatt
Copy link
Collaborator

In 4703d4e we changed
PeerManager::socket_disconnected to no longer require that sockets
which the PeerManager decided to disconnect not be disconnected.
However, we forgot to remove the scary warnings on the
new_{inbound,outbound}_connection functions which warned of the
old behavior.

We do so here.

@codecov-commenter
Copy link

codecov-commenter commented Jul 22, 2022

Codecov Report

Merging #1626 (561b4bc) into main (834fe63) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head 561b4bc differs from pull request most recent head 19b5a48. Consider uploading reports for the commit 19b5a48 to get more accurate results

@@           Coverage Diff           @@
##             main    #1626   +/-   ##
=======================================
  Coverage   90.80%   90.81%           
=======================================
  Files          80       80           
  Lines       44654    44724   +70     
  Branches    44654    44724   +70     
=======================================
+ Hits        40550    40618   +68     
- Misses       4104     4106    +2     
Impacted Files Coverage Δ
lightning/src/ln/peer_handler.rs 57.25% <ø> (ø)
lightning/src/ln/functional_tests.rs 97.00% <0.00%> (-0.03%) ⬇️
lightning-block-sync/src/poll.rs 91.05% <0.00%> (+3.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 834fe63...19b5a48. Read the comment docs.

@TheBlueMatt TheBlueMatt marked this pull request as ready for review July 22, 2022 15:41
dunxen
dunxen previously approved these changes Jul 24, 2022
Copy link
Contributor

@dunxen dunxen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 561b4bc

@tnull
Copy link
Contributor

tnull commented Jul 25, 2022

Feel free to squash!

In 4703d4e we changed
PeerManager::socket_disconnected to no longer require that sockets
which the PeerManager decided to disconnect not be disconnected.
However, we forgot to remove the scary warnings on the
`new_{inbound,outbound}_connection` functions which warned of the
old behavior.

We do so here.
@TheBlueMatt
Copy link
Collaborator Author

Squashed without change.

@TheBlueMatt TheBlueMatt merged commit 79b55f0 into lightningdevkit:main Jul 25, 2022
@tnull
Copy link
Contributor

tnull commented Jul 26, 2022

Ah, grr, totally forgot to point out the spelling mistake that persisted in the commit message after squashing..

@TheBlueMatt
Copy link
Collaborator Author

Oops, sorry lol. Oh well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants